<template>
    <el-row  :gutter="20" type="flex" justify="center" align="middle" style="height: 46px">
     <el-col :span="4" class="item">
       {{hour}}
     </el-col>
      <el-col :span="2">:</el-col>
     <el-col :span="4" class="item">
       {{minutes}}
     </el-col>
      <el-col :span="2">:</el-col>
     <el-col :span="4" class="item">
       {{seconds}}
     </el-col>
    </el-row>
</template>

<script>
export default {
  name: 'DropDown',
  data () {
    return {
      hour: '00',
      minutes: '00',
      seconds: '00'
    }
  },
  methods: {
    calculate () {}

  },
  watch: {
    endTime: {
      immediate: true,
      handler (val) {
        // 调用 计算倒计时
        this.calculate(val)
      }
    }
  },
  props: {
    endTime: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped lang="scss">
  .item {
    font-size: 25px;
    background:#605751 ;
    color: #fff;
  }
</style>
